{{define "Title"}}工单WIP{{end}}
{{define "Content"}}

<script type=text/javascript src="/js/tablestyle.js"></script>

<div class="container-fluid">
<form class="form-horizontal" action="/rprwip" method="POST">
  <fieldset>
    <legend><b>工单WIP</b></legend>
    <div class="control-group">
      <label class="control-label">工单&nbsp;</label>
      <div class="control">
        <input type="text" class="input-large" id="wono" name="wono" style="font-weight: bold; text-transform:uppercase; background-color: #FFFFD0;" maxlength="30"> <b style="color: red">*</b>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">站点&nbsp;</label>
      <div class="control">
        <select id="station" name="station"> 
          <option value="" >
          {{range .stations}}
            <option value="{{.Name | html}}">{{.Name | html}}
          {{end}}
        </select>
      </div>
    </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">查询</button>
    </div>
  </fieldset>
</form>
</div>

{{if .wip_ls}}
<div class="content-box">
  <div class="content-box-header">
    <p style="font-size: 16px;">&nbsp;&nbsp;<b>WIP明细</b></p>
  </div>
  <div class="content-box-content">
<table id="tbl_ls" width="100%" border="1" cellspacing="0" cellpadding="0">
  <thead>
    <tr>
      <th>工单</th>
      <th>站点</th>
      <th>数量</th>
    </tr>
  </thead>
  
  <tbody>
    {{range .wip_ls}}
    <tr>
      <td id="detail_won" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Name | html}}</td>
      <td id="detail_sta" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Station | html}}</td>
      <td id="detail_qty" fieldset style="color: #666666; border-style: groove; font-weight: bold"><a href="/wowipdetail?workorder={{.Name | html}}&station={{.Station | html}}">{{.Count | html}}</a></td>
    </tr>
    {{end}}
  </tbody>
</table>
</div>
</div>
{{end}}

{{end}}